package com.io.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.io.dao.TreeMapper;
import com.io.entity.tree.Tree;
import com.io.service.TreeService;

import java.util.List;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@Service
public class TreeServiceImpl implements TreeService {

    @Resource
    private TreeMapper treeMapper;

    @Override
    public int deleteByPrimaryKey(Integer sid) {
        return treeMapper.deleteByPrimaryKey(sid);
    }

    @Override
    public int insert(Tree record) {
        return treeMapper.insert(record);
    }

    @Override
    public int insertSelective(Tree record) {
        return treeMapper.insertSelective(record);
    }

    @Override
    public Tree selectByPrimaryKey(Integer sid) {
        return treeMapper.selectByPrimaryKey(sid);
    }

    @Override
    public int updateByPrimaryKeySelective(Tree record) {
        return treeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Tree record) {
        return treeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Tree> getAllWsAppList(Integer parentId) {
        return treeMapper.getAllWsAppList(parentId);
    }

}

